package com.oxy.model.dao.impl;

import java.util.List;

import com.oxy.model.Pager;
import com.oxy.model.dao.TestDao;
import com.oxy.model.po.TestPO;
import com.oxy.model.dao.mapper.TestPOMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public class TestDaoImpl extends BaseDao implements TestDao {
	
	@Autowired
	@Qualifier("testPOMapper")
	private TestPOMapper testPOMapper;
	
	public long count() {
		long ret = 0;
		ret = testPOMapper.count();
		return ret;
	}
	
	public List<TestPO> list(Pager pager) {
		List<TestPO> ret = null;
		ret = testPOMapper.listForPager(pager);
		return ret;
	}
}
